Skip to content

Conversation

Jayesh-Asrani
Copy link
Contributor

Added support to expose query response stat: timeUsedMs

Usage : To identify and monitor pinot response stats for performance benchmarking

E.g.

    curs = conn.cursor()
    curs.execute(query)
    timeUsedMs = curs.timeUsedMs

Added support to expose query response stat: timeUsedMs
@@ -311,6 +311,7 @@ def __init__(
self.schema = None
self.rowcount = -1
self._results = None
self.timeUsedMs = -1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
self.timeUsedMs = -1
# TODO: clean up stats fields in cursor
self.timeUsedMs = -1

@walterddr walterddr merged commit b43b5d1 into python-pinot-dbapi:master Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants